package b面向对象.day2.demo5_static使用;

public class Pig {
    int age;
    static String hobby="吃";

    void m1(){
       hobby="...";
       eat();
    }

    static void eat(){
        System.out.println("eat eat...............");
        //age=20;
        Pig pp=new Pig();
        pp.age=30;
        hobby="唱歌";
        //m1();
        pp.m1();
    }
}
